"""WebSite URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.conf.urls import include
from django.contrib import admin
from django.urls import path, re_path

# urlpatterns = patterns('',
#                        # ...
#                        (r'^time/plus/\d+/$', hours_ahead),
#                        # ...
#                        )
#
# 正则表达式字符串的开头字母“r”。 它告诉Python这是个原始字符串，不需要处理里面的反斜杠（转义字符）。
# 在普通Python字符串中，反斜杠用于特殊字符的转义。比如n转义成一个换行符。
# 当你用r把它标示为一个原始字符串后，Python不再视其中的反斜杠为转义字符。也就是说，“n”是两个字符串：
# “”和“n”。由于反斜杠在Python代码和正则表达式中有冲突，因此建议你在Python定义正则表达式时都使用原始字符串。

urlpatterns = [
    # path(r'', include('systemHome.urls', namespace='systemHome')),
    re_path(r'^|systemHome/', include('systemHome.urls', namespace='systemHome')),
    path('admin/', admin.site.urls),
    path(r'bookType/', include('BookType.urls', namespace='bookType')),
    path(r'book/', include('Book.urls', namespace='book')),
    path(r'statistic/', include('statistic.urls', namespace='statistic')),
]
